package benchmarks;

import java.util.ArrayList;
import java.util.List;


public class BenchmarkDistribution {

	public static void main(String[] args) throws Exception {
		long start;
		long end;
		long total;
		List<Long> results = new ArrayList<Long>();

		for (int i = 0; i < 20; i++) {
			System.out.println(i);
			System.gc();
			DistributionBenchmarkCases bcase = new DistributionBenchmarkCases();
			bcase.setUp();
			start = System.nanoTime();
			bcase.testSendBig100();
			end = System.nanoTime();
			bcase.tearDown();
			total = (end - start) / 1000;
			results.add(total);
		}
		
		long tmp = 0;
		for (long a : results){
			tmp += a;
		}
		
		System.out.println(tmp/results.size());
		System.out.println(results);
	}

}
